import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import backPage from '@/components/backPage'

import login from '@/views/login/login'
import nulll from '@/views/login/null'
import reg from '@/views/reg/reg'
import qrReg from '@/views/reg/qrReg'
import downLoad from '@/views/reg/downLoad'

import home from '@/views/home/home'
import wages from '@/views/home/wages'

import notice from '@/views/home/notice'
import manage from '@/views/manage/manage'
import volume from '@/views/manage/volume'
import customDetail from '@/views/manage/customDetail'


import active from '@/views/active/active'
import account from '@/views/active/account'
import qrcode from '@/views/active/QRcode'
import record from '@/views/active/record'
import qrTemplate from '@/views/active/qrTemplate'
import myGroup from '@/views/active/myGroup'
import upDate from '@/views/active/upDate'
import server from '@/views/active/server'

import finance from '@/views/finance/finance'
import setting from '@/views/setting/setting'
import addCard from '@/views/setting/addCard'
import backDetail from '@/views/setting/backDetail'


import contract from '@/views/setting/contract'
import instructions from '@/views/setting/instructions'
import snotice from '@/views/setting/snotice'
import feedback from '@/views/setting/feedback'
import changeCard from '@/views/setting/changeCard'

Vue.use(Router)

export default new Router({
  // mode: 'hash',
  routes: [{
      path: '/login',
      name: 'login',
      component: login,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/nulll',
        name: 'nulll',
        component: nulll,
        meta: {
          title: 'nulll'
        }
      },
    {
      path: '/reg',
      name: 'reg',
      component: reg,
      meta: {
        title: '注册'
      }
    },
    {
      path: '/qrReg',
      name: 'qrReg',
      component: qrReg,
      meta: {
        title: '推广员注册'
      }
    },
    {
      path: '/downLoad',
      name: 'downLoad',
      component: downLoad,
      meta: {
        title: '下载'
      }
    },
    {
      path: '/',
      name: 'home',
      component: home,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/notice',
      name: 'notice',
      component: notice,
      meta: {
        title: '公告'
      }
    },
    {
      path: '/manage',
      name: 'manage',
      component: manage,
      meta: {
        title: '管理'
      }
    },
    {
      path: '/customDetail',
      name: 'customDetail',
      component: customDetail,
      meta: {
        title: '成员列表'
      }
    },
    {
      path: '/active',
      name: 'active',
      component: active,
      meta: {
        title: '我的'
      }
    },
    {
      path: '/server',
      name: 'server',
      component: server,
      meta: {
        title: '服务器地址'
      }
    },
    {
      path: '/qrTemplate',
      name: 'qrTemplate',
      component: qrTemplate,
      meta: {
        title: '二维码模板'
      }
    },
    {
      path: '/account',
      name: 'account',
      component: account,
      meta: {
        title: '账号列表'
      }
    },
    {
      path: '/record',
      name: 'record',
      component: record,
      meta: {
        title: '充值记录'
      }
    },
    {
      path: '/myGroup',
      name: 'myGroup',
      component: myGroup,
      meta: {
        title: '我的分组'
      }
    },
    {
      path: '/upDate',
      name: 'upDate',
      component: upDate,
      meta: {
        title: '分组'
      }
    },
    {
      path: '/qrcode',
      name: 'qrcode',
      component: qrcode,
      meta: {
        title: '推广二维码'
      }
    },
    {
      path: '/finance',
      name: 'finance',
      component: finance,
      meta: {
        title: '财务'
      }
    },
    {
      path: '/setting',
      name: 'setting',
      component: setting,
      meta: {
        title: '设置'
      }
    },
    {
      path: '/backDetail',
      name: 'backDetail',
      component: backDetail,
      meta: {
        title: '问题反馈'
      }
    },
    {
      path: '/addCard',
      name: 'addCard',
      component: addCard,
      meta: {
        title: '添加银行卡'
      }
    },
    {
      path: '/contract',
      name: 'contract',
      component: contract,
      meta: {
        title: '合同信息'
      }
    },
    {
      path: '/changeCard',
      name: 'changeCard',
      component: changeCard,
      meta: {
        title: '更换工资卡'
      }
    },
    {
      path: '/instructions',
      name: 'instructions',
      component: instructions,
      meta: {
        title: '员工须知'
      }
    },
    {
      path: '/snotice',
      name: 'snotice',
      component: snotice,
      meta: {
        title: '通知'
      }
    },
    {
      path: '/feedback',
      name: 'feedback',
      component: feedback,
      meta: {
        title: '问题反馈'
      }
    },
    {
      path: '/wages',
      name: 'wages',
      component: wages,
      meta: {
        title: '预计累计薪资'
      }
    },
    {
      path: '/volume',
      name: 'volume',
      component: volume,
      meta: {
        title: '销售额'
      }
    },
    {
      path: '/backPage',
      name: 'backPage',
      component: backPage,
      meta: {
        title: '问题反馈'
      }
    },
  ]
})
